package com.hp.snap.gr.model.jaxb;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;
import java.util.ArrayList;
import java.util.List;


/**
 * <p>Java class for GeneralActionType complex type.
 * <p/>
 * <p>The following schema fragment specifies the expected content contained within this class.
 * <p/>
 * <pre>
 * &lt;complexType name="GeneralActionType">
 *   &lt;complexContent>
 *     &lt;extension base="{}ActionType">
 *       &lt;sequence>
 *         &lt;element name="Parameter" type="{}ParameterType" maxOccurs="unbounded" minOccurs="0"/>
 *         &lt;element name="ActionHandler" type="{}ActionHandlerType" minOccurs="0"/>
 *       &lt;/sequence>
 *     &lt;/extension>
 *   &lt;/complexContent>
 * &lt;/complexType>
 * </pre>
 */
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "GeneralActionType", propOrder = {
        "parameter",
        "actionHandler"
})
public class GeneralActionType
        extends ActionType {

    @XmlElement(name = "Parameter")
    protected List<ParameterType> parameter;
    @XmlElement(name = "ActionHandler")
    protected ActionHandlerType actionHandler;

    /**
     * Gets the value of the parameter property.
     * <p/>
     * <p/>
     * This accessor method returns a reference to the live list,
     * not a snapshot. Therefore any modification you make to the
     * returned list will be present inside the JAXB object.
     * This is why there is not a <CODE>set</CODE> method for the parameter property.
     * <p/>
     * <p/>
     * For example, to add a new item, do as follows:
     * <pre>
     *    getParameter().add(newItem);
     * </pre>
     * <p/>
     * <p/>
     * <p/>
     * Objects of the following type(s) are allowed in the list
     * {@link ParameterType }
     */
    public List<ParameterType> getParameter() {
        if (parameter == null) {
            parameter = new ArrayList<ParameterType>();
        }
        return this.parameter;
    }

    /**
     * Gets the value of the actionHandler property.
     *
     * @return possible object is
     * {@link ActionHandlerType }
     */
    public ActionHandlerType getActionHandler() {
        return actionHandler;
    }

    /**
     * Sets the value of the actionHandler property.
     *
     * @param value allowed object is
     *              {@link ActionHandlerType }
     */
    public void setActionHandler(ActionHandlerType value) {
        this.actionHandler = value;
    }

}
